package com.zkthink.ceres.msgs.dao;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.base.mapper.SuperMapper;
import com.zkthink.ceres.msgs.entity.CeresPushMsgs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 消息推送接口
 * </p>
 *
 * @author ck
 * @date 2022-02-28
 */
@Repository
public interface CeresPushMsgsMapper extends SuperMapper<CeresPushMsgs> {

    List<CeresPushMsgs> selectIfPushMsgs(@Param("mid") Long mid, @Param("msgTypeList") List<Integer> msgType, @Param("second") long second);

    List<CeresPushMsgs> selectLiveIfAutoInvite(@Param("mid") Long mid, @Param("roomId") String roomId, @Param("msgType") Integer msgType);

    IPage<CeresPushMsgs> findPushSmsByApp(IPage page, @Param("mid") Long mid);
}
